<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <th:block th:include="include :: header('新增项目')"/>
    <th:block th:include="include :: datetimepicker-css"/>
    <th:block th:include="include :: select2-css"/>
    <th:block th:include="include :: bootstrap-select-css"/>
</head>
<style>
    input::-webkit-outer-spin-button, input::-webkit-inner-spin-button {
        -webkit-appearance: none;
    }

    input[type="number"] {
        -moz-appearance: textfield;
    }

</style>
<body>

<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-pro-add">
        <div class="form-group">
            <label class="col-sm-3 control-label is-required">项目名称：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="proName" name="proName" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">项目位置：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="proPosition" name="proPosition" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">项目类型：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="proType" name="proType" />
            </div>
        </div>
        <div class="form-group">
            <label class="col-sm-3 control-label">劳资负责人：</label>
            <div class="col-sm-8">
                <input class="form-control" type="text" id="capitalPerson" name="capitalPerson" />
            </div>
        </div>
    </form>
</div>


<th:block th:include="include :: footer"/>
<th:block th:include="include :: datetimepicker-js"/>
<th:block th:include="include :: select2-js"/>
<script type="text/javascript">
    var prefix = ctx + 'capitalManage';


    function submitHandler() {
        if ($.validate.form()) {
            var data = $("#form-pro-add").serializeArray();
            $.operate.save(prefix + "/proAdd", data);
        }
    }
</script>
</body>
</html>